const KoaRouter = require('koa-router')
const PartStoreService = require('../service/partStoreService.js')
const auth = require('../middleware/auth.js')
const code = require('../common/code.js')

const router = new KoaRouter()

router.get('/partStoreList', auth(['EDP']), async ctx => {
    ctx.body = code.getCode(code.SUCCESS, null, await PartStoreService.getList(ctx.session.user.store_id))
})

module.exports = router
